#coding=utf-8
from manage import celery
from datetime import datetime as dt

@celery.task
def add(x, y):
    result = 0
    st = dt.now()
    for i in range(10000000):
        result += i	
    return '%s...%s...%s' % (st, result + x + y, dt.now())

@celery.task
def mul(x, y):
    return x * y

@celery.task
def xsum(numbers):
    return sum(numbers)
